//    Copyright (C) Kherty.  All rights reserved.
using System.Windows;

namespace OpenLS.Spreadsheet.UI
{
    class ResizeElement
    {


        public static ResizerType GetResizerType(DependencyObject obj)
        {
            return (ResizerType)obj.GetValue(ResizerTypeProperty);
        }

        public static void SetResizerType(DependencyObject obj, ResizerType value)
        {
            obj.SetValue(ResizerTypeProperty, value);
        }

        // Using a DependencyProperty as the backing store for ResizerType.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ResizerTypeProperty =
            DependencyProperty.RegisterAttached("ResizerType", typeof(ResizerType), typeof(ResizeElement), new UIPropertyMetadata(ResizerType.None));



        public static CellRelativeAddress GetMoveOffset(DependencyObject obj)
        {
            return (CellRelativeAddress)obj.GetValue(MoveOffsetProperty);
        }

        public static void SetMoveOffset(DependencyObject obj, CellRelativeAddress value)
        {
            obj.SetValue(MoveOffsetProperty, value);
        }

        // Using a DependencyProperty as the backing store for MoveOffset.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty MoveOffsetProperty =
            DependencyProperty.RegisterAttached("MoveOffset", typeof(CellRelativeAddress), typeof(ResizeElement), new UIPropertyMetadata(new CellRelativeAddress(0, 0)));



	

    }
}
